package com.sprinboot_vue.blog_springboot.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Thomas
 * @version 1.0
 * @date 2021/11/20 21:52
 */
@Data
@Entity
@Table(name = "tag")
//标签表
public class Tag {
    @Id
    //标签的hashcode值，其实这样设计是有问题的！！！
    private long id;
    private String tag;
    private int tag_number;
}
